package com.wuchao.service;

import com.github.pagehelper.PageInfo;
import com.wuchao.entity.Entry;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author wuchao66
 * @Date 2023/10/16 11:24
 * @PackageName:com.wuchao.service
 * @ClassName: EntryService
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
public interface EntryService {
    int loadby(String title,String summary);
    List<Entry> findEntryByTitle(String title);
    List<Entry> findEntryById(@Param("id") int id);//param
    //面子工程
    List<Entry> findEntryByCONCATTitle1(String title);

    //双表模糊动态条件分页查询--pagehelper 1对1 1对多 多对1 多对多
    PageInfo<Entry> findEntryAndCategoryByCONCATTitleByCategoryId(int currentPage,int pageSize,@Param("title") String title, @Param("categoryId") int categoryId);
    int addEntryByEntry(Entry entry);
}
